package ajax.test;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class AjaxTestController {

	@RequestMapping("/ajaxRequest.do")
	public @ResponseBody AjaxTest ajaxRequest(HttpServletRequest request) {
		AjaxTest test = new AjaxTest();
		test.setCount(12);
		test.setData("임정묵개개개개천재");
		test.setId("hypnodisc");
		test.setName("임정묵");
		
		return test;
	}
}
